@value unit, breakpoint-small, breakpoint-middle, breakpoint-large, large-screen-media, middle-screen-media, small-screen-media from '../global/global.css';
@value gutterWidth: (unit*2);
@value gutterCompensation: -calc(gutterWidth / 2);
@value outerMargin: calc(unit*2);
@value containerSmall: calc(breakpoint-small + gutterWidth);
@value containerMedium: calc(breakpoint-middle + gutterWidth);
@value containerLarge: calc(breakpoint-large + gutterWidth);
@value width-1: 8.33333333%;
@value width-2: 16.66666667%;
@value width-3: 25%;
@value width-4: 33.33333333%;
@value width-5: 41.66666667%;
@value width-6: 50%;
@value width-7: 58.33333333%;
@value width-8: 66.66666667%;
@value width-9: 75%;
@value width-10: 83.33333333%;
@value width-11: 91.66666667%;
@value width-12: 100%;

.container-fluid,
.container {
  margin-right: auto;
  margin-left: auto;
}

.container-fluid {
  min-width: calc(unit * 40);
  padding-right: outerMargin;
  padding-left: outerMargin;
}

.row {
  display: flex;
  flex: 0 1 auto;
  flex-flow: row wrap;

  box-sizing: border-box;
  margin-right: gutterCompensation;
  margin-left: gutterCompensation;
}

.row.reverse {
  flex-direction: row-reverse;
}

.col {
  margin-top: unit;
  margin-bottom: unit;
}

.col.reverse {
  flex-direction: column-reverse;
}

.col-xs,
.col-xs-1,
.col-xs-2,
.col-xs-3,
.col-xs-4,
.col-xs-5,
.col-xs-6,
.col-xs-7,
.col-xs-8,
.col-xs-9,
.col-xs-10,
.col-xs-11,
.col-xs-12,
.col-xs-offset-0,
.col-xs-offset-1,
.col-xs-offset-2,
.col-xs-offset-3,
.col-xs-offset-4,
.col-xs-offset-5,
.col-xs-offset-6,
.col-xs-offset-7,
.col-xs-offset-8,
.col-xs-offset-9,
.col-xs-offset-10,
.col-xs-offset-11,
.col-xs-offset-12 {
  flex: 0 0 auto;

  box-sizing: border-box;
  padding-right: calc(gutterWidth / 2);
  padding-left: calc(gutterWidth / 2);
}

.col-xs {
  flex-basis: 0;
  flex-grow: 1;

  max-width: 100%;
}

.col-xs-1 {
  flex-basis: width-1;

  max-width: width-1;
}

.col-xs-2 {
  flex-basis: width-2;

  max-width: width-2;
}

.col-xs-3 {
  flex-basis: width-3;

  max-width: width-3;
}

.col-xs-4 {
  flex-basis: width-4;

  max-width: width-4;
}

.col-xs-5 {
  flex-basis: width-5;

  max-width: width-5;
}

.col-xs-6 {
  flex-basis: width-6;

  max-width: width-6;
}

.col-xs-7 {
  flex-basis: width-7;

  max-width: width-7;
}

.col-xs-8 {
  flex-basis: width-8;

  max-width: width-8;
}

.col-xs-9 {
  flex-basis: width-9;

  max-width: width-9;
}

.col-xs-10 {
  flex-basis: width-10;

  max-width: width-10;
}

.col-xs-11 {
  flex-basis: width-11;

  max-width: width-11;
}

.col-xs-12 {
  flex-basis: width-12;

  max-width: width-12;
}

.col-xs-offset-0 {
  margin-left: 0;
}

.col-xs-offset-1 {
  margin-left: width-1;
}

.col-xs-offset-2 {
  margin-left: width-2;
}

.col-xs-offset-3 {
  margin-left: width-3;
}

.col-xs-offset-4 {
  margin-left: width-4;
}

.col-xs-offset-5 {
  margin-left: width-5;
}

.col-xs-offset-6 {
  margin-left: width-6;
}

.col-xs-offset-7 {
  margin-left: width-7;
}

.col-xs-offset-8 {
  margin-left: width-8;
}

.col-xs-offset-9 {
  margin-left: width-9;
}

.col-xs-offset-10 {
  margin-left: width-10;
}

.col-xs-offset-11 {
  margin-left: width-11;
}

.start-xs {
  justify-content: flex-start;

  text-align: start;
}

.center-xs {
  justify-content: center;

  text-align: center;
}

.end-xs {
  justify-content: flex-end;

  text-align: end;
}

.top-xs {
  align-items: flex-start;
}

.middle-xs {
  align-items: center;
}

.bottom-xs {
  align-items: flex-end;
}

.around-xs {
  justify-content: space-around;
}

.between-xs {
  justify-content: space-between;
}

.first-xs {
  order: -1;
}

.last-xs {
  order: 1;
}

@media small-screen-media {
  .container {
    width: containerSmall;
  }

  .col-sm,
  .col-sm-1,
  .col-sm-2,
  .col-sm-3,
  .col-sm-4,
  .col-sm-5,
  .col-sm-6,
  .col-sm-7,
  .col-sm-8,
  .col-sm-9,
  .col-sm-10,
  .col-sm-11,
  .col-sm-12,
  .col-sm-offset-0,
  .col-sm-offset-1,
  .col-sm-offset-2,
  .col-sm-offset-3,
  .col-sm-offset-4,
  .col-sm-offset-5,
  .col-sm-offset-6,
  .col-sm-offset-7,
  .col-sm-offset-8,
  .col-sm-offset-9,
  .col-sm-offset-10,
  .col-sm-offset-11,
  .col-sm-offset-12 {
    flex: 0 0 auto;

    box-sizing: border-box;
    padding-right: calc(gutterWidth / 2);
    padding-left: calc(gutterWidth / 2);
  }

  .col-sm {
    flex-basis: 0;
    flex-grow: 1;

    max-width: 100%;
  }

  .col-sm-1 {
    flex-basis: width-1;

    max-width: width-1;
  }

  .col-sm-2 {
    flex-basis: width-2;

    max-width: width-2;
  }

  .col-sm-3 {
    flex-basis: width-3;

    max-width: width-3;
  }

  .col-sm-4 {
    flex-basis: width-4;

    max-width: width-4;
  }

  .col-sm-5 {
    flex-basis: width-5;

    max-width: width-5;
  }

  .col-sm-6 {
    flex-basis: width-6;

    max-width: width-6;
  }

  .col-sm-7 {
    flex-basis: width-7;

    max-width: width-7;
  }

  .col-sm-8 {
    flex-basis: width-8;

    max-width: width-8;
  }

  .col-sm-9 {
    flex-basis: width-9;

    max-width: width-9;
  }

  .col-sm-10 {
    flex-basis: width-10;

    max-width: width-10;
  }

  .col-sm-11 {
    flex-basis: width-11;

    max-width: width-11;
  }

  .col-sm-12 {
    flex-basis: width-12;

    max-width: width-12;
  }

  .col-sm-offset-0 {
    margin-left: 0;
  }

  .col-sm-offset-1 {
    margin-left: width-1;
  }

  .col-sm-offset-2 {
    margin-left: width-2;
  }

  .col-sm-offset-3 {
    margin-left: width-3;
  }

  .col-sm-offset-4 {
    margin-left: width-4;
  }

  .col-sm-offset-5 {
    margin-left: width-5;
  }

  .col-sm-offset-6 {
    margin-left: width-6;
  }

  .col-sm-offset-7 {
    margin-left: width-7;
  }

  .col-sm-offset-8 {
    margin-left: width-8;
  }

  .col-sm-offset-9 {
    margin-left: width-9;
  }

  .col-sm-offset-10 {
    margin-left: width-10;
  }

  .col-sm-offset-11 {
    margin-left: width-11;
  }

  .start-sm {
    justify-content: flex-start;

    text-align: start;
  }

  .center-sm {
    justify-content: center;

    text-align: center;
  }

  .end-sm {
    justify-content: flex-end;

    text-align: end;
  }

  .top-sm {
    align-items: flex-start;
  }

  .middle-sm {
    align-items: center;
  }

  .bottom-sm {
    align-items: flex-end;
  }

  .around-sm {
    justify-content: space-around;
  }

  .between-sm {
    justify-content: space-between;
  }

  .first-sm {
    order: -1;
  }

  .last-sm {
    order: 1;
  }
}

@media middle-screen-media {
  .container {
    width: containerMedium;
  }

  .col-md,
  .col-md-1,
  .col-md-2,
  .col-md-3,
  .col-md-4,
  .col-md-5,
  .col-md-6,
  .col-md-7,
  .col-md-8,
  .col-md-9,
  .col-md-10,
  .col-md-11,
  .col-md-12,
  .col-md-offset-0,
  .col-md-offset-1,
  .col-md-offset-2,
  .col-md-offset-3,
  .col-md-offset-4,
  .col-md-offset-5,
  .col-md-offset-6,
  .col-md-offset-7,
  .col-md-offset-8,
  .col-md-offset-9,
  .col-md-offset-10,
  .col-md-offset-11,
  .col-md-offset-12 {
    flex: 0 0 auto;

    box-sizing: border-box;
    padding-right: calc(gutterWidth / 2);
    padding-left: calc(gutterWidth / 2);
  }

  .col-md {
    flex-basis: 0;
    flex-grow: 1;

    max-width: 100%;
  }

  .col-md-1 {
    flex-basis: width-1;

    max-width: width-1;
  }

  .col-md-2 {
    flex-basis: width-2;

    max-width: width-2;
  }

  .col-md-3 {
    flex-basis: width-3;

    max-width: width-3;
  }

  .col-md-4 {
    flex-basis: width-4;

    max-width: width-4;
  }

  .col-md-5 {
    flex-basis: width-5;

    max-width: width-5;
  }

  .col-md-6 {
    flex-basis: width-6;

    max-width: width-6;
  }

  .col-md-7 {
    flex-basis: width-7;

    max-width: width-7;
  }

  .col-md-8 {
    flex-basis: width-8;

    max-width: width-8;
  }

  .col-md-9 {
    flex-basis: width-9;

    max-width: width-9;
  }

  .col-md-10 {
    flex-basis: width-10;

    max-width: width-10;
  }

  .col-md-11 {
    flex-basis: width-11;

    max-width: width-11;
  }

  .col-md-12 {
    flex-basis: width-12;

    max-width: width-12;
  }

  .col-md-offset-0 {
    margin-left: 0;
  }

  .col-md-offset-1 {
    margin-left: width-1;
  }

  .col-md-offset-2 {
    margin-left: width-2;
  }

  .col-md-offset-3 {
    margin-left: width-3;
  }

  .col-md-offset-4 {
    margin-left: width-4;
  }

  .col-md-offset-5 {
    margin-left: width-5;
  }

  .col-md-offset-6 {
    margin-left: width-6;
  }

  .col-md-offset-7 {
    margin-left: width-7;
  }

  .col-md-offset-8 {
    margin-left: width-8;
  }

  .col-md-offset-9 {
    margin-left: width-9;
  }

  .col-md-offset-10 {
    margin-left: width-10;
  }

  .col-md-offset-11 {
    margin-left: width-11;
  }

  .start-md {
    justify-content: flex-start;

    text-align: start;
  }

  .center-md {
    justify-content: center;

    text-align: center;
  }

  .end-md {
    justify-content: flex-end;

    text-align: end;
  }

  .top-md {
    align-items: flex-start;
  }

  .middle-md {
    align-items: center;
  }

  .bottom-md {
    align-items: flex-end;
  }

  .around-md {
    justify-content: space-around;
  }

  .between-md {
    justify-content: space-between;
  }

  .first-md {
    order: -1;
  }

  .last-md {
    order: 1;
  }
}

@media large-screen-media {
  .container {
    width: containerLarge;
  }

  .col-lg,
  .col-lg-1,
  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-9,
  .col-lg-10,
  .col-lg-11,
  .col-lg-12,
  .col-lg-offset-0,
  .col-lg-offset-1,
  .col-lg-offset-2,
  .col-lg-offset-3,
  .col-lg-offset-4,
  .col-lg-offset-5,
  .col-lg-offset-6,
  .col-lg-offset-7,
  .col-lg-offset-8,
  .col-lg-offset-9,
  .col-lg-offset-10,
  .col-lg-offset-11,
  .col-lg-offset-12 {
    flex: 0 0 auto;

    box-sizing: border-box;
    padding-right: calc(gutterWidth / 2);
    padding-left: calc(gutterWidth / 2);
  }

  .col-lg {
    flex-basis: 0;
    flex-grow: 1;

    max-width: 100%;
  }

  .col-lg-1 {
    flex-basis: width-1;

    max-width: width-1;
  }

  .col-lg-2 {
    flex-basis: width-2;

    max-width: width-2;
  }

  .col-lg-3 {
    flex-basis: width-3;

    max-width: width-3;
  }

  .col-lg-4 {
    flex-basis: width-4;

    max-width: width-4;
  }

  .col-lg-5 {
    flex-basis: width-5;

    max-width: width-5;
  }

  .col-lg-6 {
    flex-basis: width-6;

    max-width: width-6;
  }

  .col-lg-7 {
    flex-basis: width-7;

    max-width: width-7;
  }

  .col-lg-8 {
    flex-basis: width-8;

    max-width: width-8;
  }

  .col-lg-9 {
    flex-basis: width-9;

    max-width: width-9;
  }

  .col-lg-10 {
    flex-basis: width-10;

    max-width: width-10;
  }

  .col-lg-11 {
    flex-basis: width-11;

    max-width: width-11;
  }

  .col-lg-12 {
    flex-basis: width-12;

    max-width: width-12;
  }

  .col-lg-offset-0 {
    margin-left: 0;
  }

  .col-lg-offset-1 {
    margin-left: width-1;
  }

  .col-lg-offset-2 {
    margin-left: width-2;
  }

  .col-lg-offset-3 {
    margin-left: width-3;
  }

  .col-lg-offset-4 {
    margin-left: width-4;
  }

  .col-lg-offset-5 {
    margin-left: width-5;
  }

  .col-lg-offset-6 {
    margin-left: width-6;
  }

  .col-lg-offset-7 {
    margin-left: width-7;
  }

  .col-lg-offset-8 {
    margin-left: width-8;
  }

  .col-lg-offset-9 {
    margin-left: width-9;
  }

  .col-lg-offset-10 {
    margin-left: width-10;
  }

  .col-lg-offset-11 {
    margin-left: width-11;
  }

  .start-lg {
    justify-content: flex-start;

    text-align: start;
  }

  .center-lg {
    justify-content: center;

    text-align: center;
  }

  .end-lg {
    justify-content: flex-end;

    text-align: end;
  }

  .top-lg {
    align-items: flex-start;
  }

  .middle-lg {
    align-items: center;
  }

  .bottom-lg {
    align-items: flex-end;
  }

  .around-lg {
    justify-content: space-around;
  }

  .between-lg {
    justify-content: space-between;
  }

  .first-lg {
    order: -1;
  }

  .last-lg {
    order: 1;
  }
}

